home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 44
/
Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso
/
-serious-
/
wb
/
merlin
/
rexx
/
list.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-07-12
|
2KB
|
101 lines
/* RUN "rx MCP:rexx/EuroToGuilder.rexx %n" */
Arg node_number ID /* node we were run from, Object ID */
Host = 'MCPREXX.'node_number /* the Trion MCP Arexx port */
Options results
Address value host
options failat 15
/* say "node: "node_number */
if node_number = "" then do
say "error .. rexx script not started with %n on command line"
exit 1
end
if ID = "" then do
say "error .. rexx script not started with %i or ID on command line"
exit 2
end
if ID = 39 then do /* Test read list */
GetFirstItem 10
str = result
say "val" rc
say "read" str
AddToList "20" str "test"
GetNextItem 10
str = result
say "val" rc
say "read" str
AddToList "20" str "test"
end
if ID = 40 then do /* Do button */
/* copy selected item to other list */
end = 0
GetFirstItem 10
end = rc
str = result
do while end = 0
AddToList "20" str "test"
GetNextItem 10
end = rc
str = result
end
end
if ID = 41 then do /* Empty button */
AddToList "10 line0 line0"
AddToList "10 line1 line1"
AddToList "10 line2 line2"
AddToList "10 line3 line3"
AddToList "10 line4 line4"
AddToList "10 line5 line5"
AddToList "10 line6 line6"
AddToList "10 line7 line7"
AddToList "10 line8 line8"
AddToList "10 line9 line9"
end
if ID = 42 then do /* Empty button */
EmptyList 10
end
if ID = 43 then do /* Clear button */
ClearList 10
end
if ID = 11 then do /* left string gadget */
ReadString "ID 11"
str = result
AddToList "10" str str
end
if ID = 21 then do /* Right string gadget */
ReadString "ID 21"
str = result
AddToList "20" str str
end
exit 0 /* einde programma */
test: /* een functie: 'call test' */
return 0